package com.cardmanager.pro.business;

import java.util.List;

import com.cardmanager.pro.pojo.ConsumeTaskPOJO;
import com.cardmanager.pro.pojo.RepaymentTaskPOJO;

public interface ConsumeTaskPOJOBusiness {

	ConsumeTaskPOJO save(ConsumeTaskPOJO consumeTaskPOJO);

	int queryTaskStatus0Count(String userIdStr, String creditCardNumber, int taskStatus);

	List<ConsumeTaskPOJO> findTaskType2AndTaskStatus0RepaymentTask();

	int queryTaskStatus0AndTaskType0Count(String userId, String creditCardNumber, int taskStatus, int taskType);

	int queryOrderStatus1AndTaskType0Count(String userId, String creditCardNumber, int OrderStatus, int TaskType);

	List<ConsumeTaskPOJO> saveArrayList(List<ConsumeTaskPOJO> consumeTaskPOJOs);

	List<ConsumeTaskPOJO> findByRepaymentTaskId(String repaymentTaskId);

	ConsumeTaskPOJO findByOrderCode(String orderCode);

	void updateTaskStatus4AndReturnMessageByRepaymentTaskId(String repaymentTaskId, String string);

	void saveArrayListTaskAll(List<ConsumeTaskPOJO> consumeTaskPOJOs, RepaymentTaskPOJO[] repaymentTaskPOJOs);

	int queryOrderStatus1AndTaskType0Count(String userId, String creditCardNumber);

	ConsumeTaskPOJO findByTaskType0AndTaskStatus0ConsumeTaskPOJO(String userId, String creditCardNumber);

	void deleteRepaymentTaskAndConsumeTask(RepaymentTaskPOJO repaymentTaskPOJO, List<ConsumeTaskPOJO> consumeTaskPOJOs);

	ConsumeTaskPOJO findByConsumeTaskId(String consumeTaskId);

	int queryTaskStatus(String userId, String creditCardNumber);

	List<RepaymentTaskPOJO> queryRepaymentTask(String userId, String creditCardNumber);

	void updateRepaymentTask(String userId, String creditCardNumber);

	void deleteRepaymentTask( List<RepaymentTaskPOJO> list);

}
